﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Kardex.Show
{
    public class PresenterSecondStepForShowKardex
    {
        
        private ISecondStepForShowKardex view;

        public PresenterSecondStepForShowKardex(ISecondStepForShowKardex View)
        {
            view = View;
        }


        public void UpdateDataKardex()
        {
            view.PersonId = view.KardexToShow.Person.PersonId;
            if(view.KardexToShow.AllotmentModel==null)
            {

                view.SquareId = "Sin Asignar";
                view.AllotmentName = "Sin Asignar";
            }
            else
            {
            view.SquareId = view.KardexToShow.AllotmentModel.SquareId;
            view.AllotmentName = view.KardexToShow.AllotmentModel.AllotmentName;
            }
        }
    }
}
